home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
pgm_ctrl
/
cuactrls
/
cmeter.frm
< prev
next >
Wrap
Text File
|
1995-05-22
|
4KB
|
136 lines
VERSION 2.00
Begin Form frmMeter
BorderStyle = 3 'Fixed Double
Caption = "Progress Indicator (Meter) Demo"
ClientHeight = 2100
ClientLeft = 1140
ClientTop = 3525
ClientWidth = 5700
ClipControls = 0 'False
Height = 2505
Left = 1080
LinkTopic = "Form1"
ScaleHeight = 2100
ScaleWidth = 5700
Top = 3180
Width = 5820
Begin CUAStatus sts1
Align = 2 'Align Bottom
BackColor = &H00C0C0C0&
Height = 330
Left = 0
TabIndex = 5
Top = 1770
Width = 5700
Begin CUAMeter mtr1
BackColor = &H00C0C0C0&
BorderStyle = 7 'Inset single
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00800000&
Height = 225
Index = 1
Left = 210
Meter3D = -1 'True
Percent = 0 'False
Segmented = -1 'True
TabIndex = 6
Top = 60
Value = 50
Width = 5265
End
End
Begin CUAMeter mtr1
BorderStyle = 1 'Fixed Single
ForeColor = &H000000FF&
Height = 1485
Index = 2
Left = 135
Orientation = 1 'Vertical
TabIndex = 4
Top = 120
Value = 50
Width = 570
End
Begin CUACommand cmdOK
Caption = "OK"
Default = -1 'True
Height = 345
Left = 4290
StandardButton = 1 'OK
TabIndex = 2
Top = 135
Width = 1260
End
Begin CUACommand cmdTry
Caption = "Show me!"
Height = 345
Left = 3705
TabIndex = 1
Top = 1275
Width = 1845
End
Begin CUAMeter mtr1
BorderStyle = 1 'Fixed Single
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00C0C0C0&
Height = 285
Index = 0
Left = 945
Meter3D = -1 'True
TabIndex = 0
Top = 1320
Value = 40
Width = 2535
End
Begin CUALabel lbl
Caption = "Meters are commonly used to show the progress of an ongoing process, for example the copying of a diskette. If the amount of work can be estimated and takes longer than three seconds, this is highly recommended!"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00000080&
Height = 1050
Index = 6
Left = 915
TabIndex = 3
Top = 90
Width = 3270
End
End
Option Explicit
Sub cmdOK_Click ()
Unload Me
End Sub
Sub cmdTry_Click ()
Dim I%
'If mtr1(0) = mtr1(0).Max Then
' For I = mtr1(0).Max To mtr1(0).Min Step -1
' mtr1(0) = I
' mtr1(1) = I
' mtr1(2) = I
' Next
'Else
For I = mtr1(0).Min To mtr1(0).Max
mtr1(0) = I
mtr1(1) = I
mtr1(2) = I
Next
'End If
End Sub